
<#include "/common/head.html"/>

 <div class="easyui-panel updatePage" data-options="fit:true,border:false">
    <form id="ff" class="easyui-form" method="post">
        <table class="table1">
        	<tr>
           		<th><span>出库单名称：</span></th>
               	<td colspan="4">
               		<input class="easyui-textbox" type="text" name="out_name" value="${model.out_name!''}" data-options="" style="width:80%"></input>
           		</td>
           	</tr>
           	<tr>
           		<th><span>出库单编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="out_no" value="${model.out_no!''}" data-options="readonly:true"></input>
           		</td>
           		
           		<th><span>出库单条码：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="out_barcode" value="${model.out_barcode!''}" data-options="readonly:true"></input>
           		</td>           		
            </tr>
            <tr>
           		<th><span>出库类型：</span></th>
               	<td>
               		<input id="out_type" name="out_type" class="easyui-combobox" value="${model.out_type!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDataout_type.keySet() as key>,{id:'${key}', text:'${dictDataout_type.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
           		<th><span>所属仓库：</span></th>
               	<td>
               		<input id="storage_no" name="storage_no" class="easyui-combobox" value="${model.storage_no!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatastorage_no.keySet() as key>,{id:'${key}', text:'${dictDatastorage_no.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           	</tr>
            <tr>
           		<th><span>填单人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="out_user" value="${model.out_user!''}" data-options="readonly:true"></input>
           		</td>
           			
           		<th><span>填单时间：</span></th>
               	<td>
               		<input class="easyui-datetimebox" type="text" name="out_time" value="${model.out_time!''}" data-options=""></input>
           		</td>
           	</tr>
            <tr>
           		<th><span>操作类型：</span></th>
               	<td colspan="4">
               		<input id="operate_type" name="operate_type" class="easyui-combobox" value="${model.operate_type!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDataoperate_type.keySet() as key>,{id:'${key}', text:'${dictDataoperate_type.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           	</tr>
           	<!-- <tr>
           		<th><span>审核人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="audit_user" value="${model.audit_user!''}" data-options=""></input>
           		</td>
           		
           		<th><span>审核时间：</span></th>
               	<td>
               		<input class="easyui-datebox" type="text" name="audit_time" value="${model.audit_time!''}" data-options=""></input>
           		</td>
           		
            </tr> -->
            <!-- <tr>
           		<th><span>打印人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="print_user" value="${model.print_user!''}" data-options=""></input>
           		</td>
           		
           		<th><span>打印时间：</span></th>
               	<td>
               		<input class="easyui-datebox" type="text" name="print_time" value="${model.print_time!''}" data-options=""></input>
           		</td>           		
            </tr> -->           
            <!-- <tr>
           		<th><span>出库目标：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="out_target" value="${model.out_target!''}" data-options=""></input>
           		</td>
           		
           		<th><span>出货批次：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="out_batch" value="${model.out_batch!''}" data-options=""></input>
           		</td>
           		
                <td colspan="2"></td>
            </tr>
             -->
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	if($("#zcurdHeadTable").form('validate')) {
		$.post("update", getParam(), function(data) {
			top.window.closeWindow();
			top.window.subPage.loadCurrDatagrid();
		});
	}
}
function getParam() {
	var param = {
	     
	    "id": ${model.id}, 
       	    "model.out_type": getInputValue("out_type"), 
       	    "model.storage_no": getInputValue("storage_no"), 
       	    "model.out_time": getInputValue("out_time"), 
       	    "model.out_user": getInputValue("out_user"), 
       	    "model.audit_user": getInputValue("audit_user"), 
       	    "model.audit_time": getInputValue("audit_time"), 
       	    "model.print_user": getInputValue("print_user"), 
       	    "model.print_time": getInputValue("print_time"), 
       	    "model.operate_type": getInputValue("operate_type"), 
       	    "model.out_name": getInputValue("out_name"), 
       	    "model.out_no": getInputValue("out_no"), 
       	    "model.out_barcode": getInputValue("out_barcode"), 
       	    "model.out_target": getInputValue("out_target"), 
       	    "model.out_batch": getInputValue("out_batch"), 
	}
	for(key in param) {
		if(!param[key]) {
			delete param[key];
		}
	}
	return param;
}

//扩展js
</script>
<#include "/common/foot.html"/>
